#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
WordMathMerger插件安装脚本
"""

from setuptools import setup, find_packages
import os

# 读取README文件
with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

# 读取requirements文件
with open("requirements.txt", "r", encoding="utf-8") as fh:
    requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="WordMathMerger",
    version="1.0.0",
    author="WordMathMerger Team",
    author_email="",
    description="Word文档数学内容合并插件",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/your-repo/WordMathMerger",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Office/Business :: Office Suites",
        "Topic :: Text Processing :: Markup",
    ],
    python_requires=">=3.7",
    install_requires=requirements,
    entry_points={
        "console_scripts": [
            "wordmathmerger=main:cli_merge",
            "wordmathmerger-gui=main:gui_merge",
        ],
    },
    include_package_data=True,
    package_data={
        "": ["*.md", "*.txt", "examples/*"],
    },
)